<template>
  <div>
    <el-page-header @back='goBack' :content='result' />
    <router-view />
  </div>

</template>

<script>
export default {
  name: 'SearchPage',
  data() {
    return {
      result: ''
    }
  },
  created() {
    let mode = this.$route.name === 'blogs' ? '文章' : '用户'
    this.result = mode + '搜索结果'
  },
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>

</style>
